package com.decent.wx.entity;

import lombok.Data;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author 王雪杰
 * @date 2021/8/28 17:48
 */
@Configuration
@PropertySource(value = "classpath:wx-sendmessage-config.properties")
@Getter
@Component
public class WxSendMessageConfig implements Serializable {
    /**
     * 微信服务端请求域名和路径
     */
    @Value("${wx-domain}")
    private String wxDomain;
    /**
     * 小程序唯一凭证，即 AppID
     */
    @Value("${app-id}")
    private String appId;
    /**
     * 小程序唯一凭证密钥
     */
    @Value("${secret}")
    private String secret;

}
